<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<%@ include file="../common/include/include.jsp"%>
<title>login</title>
<script type="text/javascript">
	function doSubmit() {
		chgAction("loginBackendAction", "login");
		document.forms[0].submit();
	}

	function goIndex() {
		
	}
	//初始化页面
	function initPage(){
	//1. 焦点停在账号输入栏
		document.getElementById("loginBackendForm.userId").focus();	
	}
	
</script>
</head>
<body ONLOAD="initPage();">
	<s:form action="loginBackendAction" name="form1" method="post" namespace="/backend">
		<table align="center">
			<tr>
				<td colspan="2" align="center">登录画面</td>
			</tr>
			<tr>
				<td>帐号：</td>
				<td>
					<s:textfield name="loginBackendForm.userId"
						id="loginBackendForm.userId" >
					</s:textfield>
				</td>
			</tr>
			<tr>
				<td>密码：</td>
				<td>
				<s:textfield name="loginBackendForm.password" id="loginBackendForm.password"></s:textfield>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
				<input type="button" value="登录" id="loginButton" onclick="doSubmit();" />
						&nbsp;&nbsp; 
					<input type="reset" value="重置" /> 
					<input type="button" value="index" onclick="goIndex()">
				</td>
			</tr>
		</table>
	</s:form>
</body>
</html>